package main

import (
	"flag"
	_ "go.uber.org/automaxprocs"
	"k9-panel/app/adapter/http"
	"k9-panel/cmd/server/boot"
)

var (
	bootConfig boot.Config
	File       string
	ShowHelp   bool
)

func init() {
	flag.StringVar(&File, "config", "", "config file")
	flag.BoolVar(&ShowHelp, "help", false, "show help")
	flag.Parse()

}
func main() {
	if ShowHelp {
		flag.Usage()
		return
	}
	bootConfig.ConfigFile = File
	boot.Start(bootConfig)
	http.StartServer()

}
